<?php
class Comment extends Doctrine_Record
{
    public function setTableDefinition()
    {
        $this->hasColumn('user_id', 'integer', 20);
        $this->hasColumn('support_id', 'integer', 20);
        $this->hasColumn('subject', 'string', 255);         //galbut nereik?
        $this->hasColumn('comment_text', 'string', 255);
        $this->hasColumn('time', 'date');                   //galbut nereik?
        $this->hasColumn('temp', 'string', 1000);
    }
    public function setUp()
    {
        $this->actAs('Timestampable');
        $this->hasMany('User as Users', array(
                'local' => 'user_id',
                'foreign' => 'id'
            )
        );
        $this->hasMany('Support as Supports', array(
                'local' => 'support_id',
                'foreign' => 'id'
            )
        ); 
    }

}


